/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package co.edu.uniandes.vehialpes.serviciosWeb;

import co.edu.uniandes.vehialpes.beans.RegistraDiagnosticoLocal;
import co.edu.uniandes.vehialpes.entity.Diagnostico;
import javax.ejb.EJB;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.ejb.Stateless;

/**
 *
 * @author Cquiroga
 */
@WebService
@Stateless()
public class RegistrarDiagnostico {
    @EJB
    private RegistraDiagnosticoLocal ejbRef;// Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Web Service Operation")

    @WebMethod(operationName = "registrarInfoDiagnostico")
    public Diagnostico registrarInfoDiagnostico(@WebParam(name = "idSolicitud") int idSolicitud, @WebParam(name = "resultado") String resultado, @WebParam(name = "descripcion") String descripcion) {
        return ejbRef.registrarInfoDiagnostico(idSolicitud, resultado, descripcion);
    }
    
}
